package com.example.invoice_contrast.service.impl;

import com.example.invoice_contrast.bean.DateLakeElectronicInvoice;
import com.example.invoice_contrast.mapper.DateLakeElectronicInvoiceMapper;
import com.example.invoice_contrast.service.DateLakeElectronicInvoiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.Set;

@Service
public class DateLakeElectronicInvoiceServiceImpl implements DateLakeElectronicInvoiceService {

    @Autowired
    private DateLakeElectronicInvoiceMapper dateLakeElectronicInvoiceMapper;

    @Override
    public Set<DateLakeElectronicInvoice> findByDLEI(String date) throws IOException {
        Set<DateLakeElectronicInvoice> byDLEI = dateLakeElectronicInvoiceMapper.findByDLEI(date);
        return byDLEI;
    }
}
